<?php

namespace project\english;

use model\MMemoryWords;

class ServiceWordsInfo
{
    use \CoreModelInfoGet;

    private static $infoes;

    public static function get($ids)
    {
        return MMemoryWords::select('*', ['id' => $ids]);
    }


    function readStatic($id)
    {
        return self::$infoes[$id] ?? null;
    }

    function readCache($id)
    {
        // TODO: Implement readCache() method.
    }

    function readDb($id)
    {
        return MMemoryWords::select('*', ['id' => $id]);
    }

    function writeCache($id, $data)
    {
        // TODO: Implement writeCache() method.
    }

    function writeStatic($id, $data)
    {
        self::$infoes[$id] = $data;
    }
}